<template>
	<view>
		<view @click="handleClick" class="list-item">
			<image :src="item.image" mode=""></image>
			<view class="right">
				<view class="title">{{ item.title }}</view>
				<view class="desc">{{ item.desc }}</view>
				<view class="price">{{ item.price }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "list-item",
		props: {
			item: {
				type: Object,
				default: {}
			}
		},
		methods: {
			handleClick($event) {
				this.$emit('click', $event)
			},
		},
		data() {
			return {

			};
		}
	}
</script>

<style scoped lang="scss">
	.list-item {
		display: flex;

		image {
			width: 300rpx;
			height: 240rpx;
			flex-shrink: 0;
		}
	}
</style>